package com.edu.cqr.web.demo.controller;

import com.edu.cqr.web.demo.config.ResultJson;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
@Api(tags="用户管理")
public class UserController {
    @PostMapping("/login")

    @ApiImplicitParams({
            @ApiImplicitParam(name = "name",value = "用户名",dataType = "string",required = true),
            @ApiImplicitParam(name = "pass",value = "密码",dataType = "string",required = true)
    })
    public ResultJson login(){
        return new ResultJson("200","登录成功","null");
}
}
